package com.xdxc.controller;

import com.xdxc.response.Result;
import com.xdxc.service.impl.GradingService;
import com.xdxc.service.serviceinterface.GradingResultService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

@RestController
@Slf4j
@RequestMapping("/grade")
public class GradeController {

    @Autowired
    private GradingService gradingService;

    @GetMapping("/objectGrade/{examId}")
    public void objectGrade(@PathVariable Long examId){
        gradingService.sendExamAnswers(examId);

    }
    @GetMapping("/subjectiveGrade/{examId}")
    public void subjectiveGrade(@PathVariable Long examId){

    }


    private static class PaperIdRequest {
        private Long paperId;
        public Long getPaperId() {
            return paperId;
        }

        public void setPaperId(Long paperId) {
            this.paperId = paperId;
        }

    }


}
